package com.lix.controller;

import com.lix.feignClient.CoreServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/data")
@RestController
public class DataDemoController {

    @Autowired
    private CoreServiceClient coreServiceClient;

    @GetMapping("/get-data")
    public String getDataFromCore() {
        return coreServiceClient.getData();
    }
}
